<?php

require_once('include/include_base.php');

require_once('include/precondition_loggedin.php');

// get User by id
$userVO = new UserVO();
$userVO->username = $_SESSION['username'];
$userVO = User::getUserByUsername($userVO, "profile");

$smarty->assign("userVO", $userVO);

$smarty->assign("title", $userVO->screenname);
$smarty->assign("page", "user");
$smarty->display('master.tpl.html');